<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>接口管理</title>
</head>
<body onload="init()">
    <input type="hidden" id="type" th:value="${type}" />
    <script th:inline="javascript">
        /*<![CDATA[*/
        var pageContext = /*[[@{/}]]*/;
        /*]]>*/
        function init() {
        	var type = document.getElementById("type").value;
        	if(type == "doc") {
        		window.location.href = pageContext + "doc.html";
        	} else {
        		// 传统页面swagger-ui.html
        		window.location.href = pageContext + "swagger-ui.html";
        	}
        }
    </script>
</body>
</html>